package adv331;

import java.io.FileReader;
import java.io.Reader;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileReaderTest2 {
    public static void main(String[] args) {
        try {
            Reader reader=new FileReader("d:/temp/java83.txt");
           int len=0;
           char c[]=new char[100];
           while ((len=reader.read(c))!=-1){
               String str=new String(c,0,len);
               //String str=new String(c,0,len);
               System.out.print(str);
           }
            reader.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
